package com.elvis.oa;

import com.elvis.common.core.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: com.elvis.devinsor
 * @description: 测试
 * @author: JackRen
 * @create: 2020-05-16 16:12
 **/

@Api(tags="新建module--oa")
@RestController
@RequestMapping("/test/demo")
@Slf4j
public class HelloWorld {

    /**
     * hello world
     * @return
     */
    @ApiOperation("测试hello方法")
    @GetMapping(value = "/hello")
    public Result<String> hello() {
        Result<String> result = new Result<String>();
        result.setResult("Hello World!");
        result.setSuccess(true);
        return result;
    }

}
